/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.account.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.medusa.gruul.account.api.entity.MemberInfo;
import com.medusa.gruul.account.model.dto.UpdateApiMemberExpireTimeDto;
import com.medusa.gruul.account.model.dto.UpdateApiMemberExpireTimePageDto;
import com.medusa.gruul.account.model.dto.UpgradeApiMemberRankDto;
import com.medusa.gruul.account.model.dto.UpgradeApiMemberRankPageDto;
import com.medusa.gruul.account.model.vo.ApiMemberCardInfoVo;
import com.medusa.gruul.account.model.vo.MemberCardUpgradeVo;
import com.medusa.gruul.payment.api.model.dto.PayResultDto;

import java.util.List;

/**
 * 会员信息表 服务类 小程序端
 *
 * @author zhaokw
 * @since 2020-05-30
 */
public interface IApiMemberInfoService extends IService<MemberInfo> {

    /**
     * 小程序端会员信息列表 com.medusa.gruul.account.model.vo.ApiMemberCardInfoVo
     *
     * @return com.medusa.gruul.account.model.vo.ApiMemberCardInfoVo
     */
    List<ApiMemberCardInfoVo> getMemberInfo();

    /**
     * 小程序端更新会员的到期日，会员续费
     *
     * @param updateApiMemberExpireTimeDto com.medusa.gruul.account.model.dto.UpdateApiMemberExpireTimeDto
     * @return com.medusa.gruul.payment.api.model.dto.PayResultDto
     */
    PayResultDto updateMemberExpireTime(UpdateApiMemberExpireTimeDto updateApiMemberExpireTimeDto);

    /**
     * 付費購買會員卡續費
     */
    Object updateMemberExpireTimePage(UpdateApiMemberExpireTimePageDto memberExpire);

    /**
     * 小程序端升级会员界面
     *
     * @param memberId 会员id
     * @return com.medusa.gruul.account.model.vo.MemberCardUpgradeVo
     */
    MemberCardUpgradeVo getMemberCardUpgrade(String memberId);

    /**
     * 小程序端升级会员等级
     *
     * @param upgradeApiMemberRankDto com.medusa.gruul.account.model.dto.UpgradeApiMemberRankDto
     * @return com.medusa.gruul.payment.api.model.dto.PayResultDto
     */
    PayResultDto upgradeMemberRank(UpgradeApiMemberRankDto upgradeApiMemberRankDto);

    /**
     * 升級會員等級頁面
     */
    Object upgradeMemberRankPage(UpgradeApiMemberRankPageDto updateMemberRankPage);
}
